package org.zhangxiao.paladin2.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统配置
 * </p>
 *
 */
@Getter
@Setter
@Accessors(chain = true)


@TableName("`sys_cfg`")
public class SysCfg extends Model<SysCfg> {

    private static final long serialVersionUID = 1L;

    //字段名称映射
    public static final String FN_cfgKey = "cfg_key";
    public static final String FN_cfgVal = "cfg_val";

    /**
     * 配置主键
     */
    @TableId(value = "cfg_key", type = IdType.INPUT)
    private String cfgKey;

    /**
     * 配置值
     */
    @TableField("cfg_val")
    private String cfgVal;


    @Override
    protected Serializable pkVal() {
        return this.cfgKey;
    }

}
